<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻公告界面</title>

    <link rel="stylesheet" href="../common/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="../common/bootstrap/table/css/bootstrap-table.min.css">
    <link type="text/css" rel="stylesheet" href="../common/treeview/bootstrap-treeview.css">
    <link rel="stylesheet" href="../common/css/common.css">
    <link type="text/css" rel="stylesheet" href="../common/toastr/toastr.min.css">




</head>

<div class="modal fade" id="myModal" tabindex="-1" news="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    增加新闻公告信息
                </h4>
            </div>
            <div class="modal-body">
                <form id="newsForm">
                    <div class="row">

                        <div class="col-md-12">
                            <div class="form-group input-group">
                                <span class="input-group-addon">新闻公告标题</span>
                                <input class="form-control" placeholder="新闻公告标题" name="title" id="title">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">发布人</span>
                                <input class="form-control" readonly="readonly" placeholder="发布人" name="staffName" id="staffName">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">状态</span>
                                <select class="form-control" id="status" name="status">
                                    <option value="0">禁用</option>
                                    <option value="1">启用</option>
                                </select>
                            </div>
                        </div>

                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">创建日期</span>
                                <input type="date" class="form-control" placeholder="创建日期" name="createdTime" id="createdTime">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">结束日期</span>
                                <input type="date" class="form-control"  placeholder="结束日期" name="endTime" id="endTime">


                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group input-group">
                                <span class="input-group-addon">新闻公告内容</span>
                                <!--<input type="text" class="form-control"   placeholder="新闻公告内容" name="content" id="content">-->
                                <textarea class="form-control" rows="5" placeholder="新闻公告内容" name="content" id="content"></textarea>
                            </div>

                        </div>

                        <div class="col-md-4">
                            <div class="form-group input-group" style="display: none">
                                <span class="input-group-addon">ID</span>
                                <input class="form-control" placeholder="ID" name="id" id="id">
                            </div>
                        </div>

                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="aaa()">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<!-- 权限树的模态框 -->

<!-- 模态框（Modal） -->
<div class="modal fade" id="myModaltree" tabindex="-1" news="dialog" aria-labelledby="myModalLabeltree" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabeltree">
                    权限分配
                </h4>
            </div>
            <div class="modal-body">

                <div id="tree1"></div>


            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">
                    关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="newsTree.setTreeList()">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<body>






<div class="form-groupd">
    <label for="searchTitle" class="label-control">标题</label>
    <input type="text" class="form-control" id="searchTitle" placeholder="标题">
</div>
<div class="form-groupd">
    <label for="searchStaffName" class="label-control">发布人</label>
    <input type="text" class="form-control" id="searchStaffName" placeholder="发布人">
</div>
<div class="form-groupd">
    <label for="searchCreatedTime" class="label-control">开始时间</label>
    <input type="date" class="form-control" id="searchCreatedTime" placeholder="创建日期">
</div>
<div class="form-groupd">
    <label for="searchEndTime" class="label-control">结束时间</label>
    <input type="date" class="form-control" id="searchEndTime" placeholder="结束日期">
</div>
<button type="button" class="btn btn-primary" onclick="newsManage.search()">搜索</button>
<button type="button" class="btn btn-primary" onclick="addnews()">添加</button>

<div class="tab-pane">
    <table class="table table-striped table-hover table-bordered" id="newsList">
        <thead style="background-color: #BEDDFA">

        </thead>
    </table>
</div>

<!-- system modal start -->
<div id="ycf-alert" class="modal">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                <h5 class="modal-title"><i class="fa fa-exclamation-circle"></i> [Title]</h5>
            </div>
            <div class="modal-body">
                <p>[Message]</p>
            </div>
            <div class="modal-footer">
                <center>
                    <button type="button" class="btn btn-primary ok" data-dismiss="modal">[BtnOk]</button>
                    <button type="button" class="btn btn-default cancel" data-dismiss="modal">[BtnCancel]</button>
                </center>
            </div>
        </div>
    </div>
</div>



<script type="text/javascript" src="../common/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../common/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="../common/bootstrap/table/js/bootstrap-table.min.js"></script>
<script type="text/javascript" src="../common/bootstrap/table/js/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="../common/toastr/toastr.min.js"></script>
<script type="text/javascript" src="../common/confirm/bootstrap.confirm.js"></script>
<script type="text/javascript" src="../common/treeview/bootstrap-treeview.js"></script>
<script type="text/javascript" src="../common/validate/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="../common/js/news/list.js"></script>
<script type="text/javascript" src="../common/js/news/add.js"></script>

</body>
</html>